package com.kerwin.param;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 添加订单参数
 * @Author: kerwin
 * @CreateTime: 2023-02-19  20:31
 */
@Data
public class OrderAddParam {

    /**
     * 商品id
     */
    @NotNull
    private Long pId;

    /**
     * 购买商品数量
     * @default 1
     */
    @NotBlank
    private Integer pNum;

    private String remark;
}
